package cn.xiaok.springboot.mapper;

import cn.xiaok.springboot.entity.User;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.springframework.stereotype.Service;

/**
 * @author xueqian.shi
 * @date 2020/9/19
 */
@Service
public interface UserMapperDB2 {
    @DS("db2") //指定数据源为db2
    User find(int id);
}
